﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="mfLogin.aspx.cs" Inherits="msBsc.WebUi.mfLogin" %>

<!DOCTYPE HTML>
<html>
<head>
    <title>手机优速购商城</title>
    <%=getMeta()%>
    <link rel="stylesheet" type="text/css" href="/themes/mStyle1/mGlobal.css" charset="gbk" /> 
    <%=getBodyBeforeJs()%>
    <script src="/??jqPlugin/js/jquery-1.8.3.min.js,js/jBase.js,js/jmPage.js,themes/Style1/jsQt.js,jqPlugin/js/laytpl.js"
        type="text/javascript"></script>
    <script type="text/javascript">
        $(window).load(function () {
        });
        //        $(window).bind('resize', function () { _self._ResizeHandler(_self); })
        //        .bind('scroll', function () { _self._ResizeHandler(_self); });
    </script>
    <!--head fix rgn-->
    <style type="text/css">
        .search-bar
        {
            top: 0px;
            background-color: #c40000;
            padding: 4px 2px 2px;
        }
        .search-bar-tbl a
        {
            color: #fff;
        }
        
    
.btn{display:inline-block;zoom:1;*display:inline;height:36px;line-height:36px;padding:0 20px;color:#FFF;font-weight:bold;font-size:16px;text-align:center;background:#ff4001;border:none;border-radius:3px;cursor:pointer;}
.btn-white{color:#404040;background-color:#f7f7f7;border:1px solid #d0d0d0;}
.btn-disabled{background-color:#ededed;border-color:#ededed;color:#999;cursor:default;}
.btn-weak{font-weight:normal;font-size:14px;padding:0 5px;}
.btn:hover{color:#FFF;text-decoration:none;background-color:#f73500;}
.btn-white:hover{background-color:#dedede;}
.btn-disabled:hover{background-color:#ededed;}

.btn-large{min-width:180px;}
.btn-normal{min-width:100px;}    
         
    </style>
    <base target="_self" />
</head>
<body>
    <div class="viewport">
        <%=omQtHtmlGet.GetHeaderTopHtml(false, false)%> 
        <form  action='#' method="post" id="J_EmailForm" >
        <input type="hidden" name="txtRetUrl" id="txtRetUrl" value="">
        <div class="new-txt-err" id="err" style="display: none;">
        </div>
        <div style=" margin-top:26px;  ">
            用户名/邮箱：</div>
        <div>
            <input type="text" value=""   name="username" id="username" placeholder="请输入用户名/邮箱" style="width:100%; line-height:32px; "
                onkeydown="changeColor(0,event)">
        </div>
        <div style=" margin-top:6px; ">
            登录密码：</div>
        <div>
            <input type="password" value=""   name="password" id="password" placeholder="请输入密码" style="width:100%; line-height:32px; "
                onkeydown="changeColor(1,event)">
        </div>
        <input type="hidden" id="remember" value="true" name="remember">
        <div>
        <button type="button" class="btn btn-large" id="J_BtnEmailForm" style=" margin-top:20px;width:100%;">登  录</button>
        </div>

        </form>
        <script type="text/javascript">
            $("#J_BtnEmailForm").live("click", function () {
                dologin();
            }); 
            function dologin() {
                if ($("#username").val() && $("#password").val() ) {
                    var _jsParam = new jsonRow();
                    _jsParam.AddCell("ACTION", "REGIST_STEP1");
                    _jsParam.AddCell("USER_NME", $("#username").val());
                    _jsParam.AddCell("USER_PASS", $("#password").val()); 
                    ajaxComm(_jsParam);
                } else {
                    alert("登录不成功：请输入登录名、密码、校验码！");
                }
            };
            function RetToUrl() {
                var ut = $("#txtRetUrl").val();
                if (ut) {
                    window.location.href = ut;
                } else {
                    window.location.reload(true);
                }
            };
        </script>
    </div> 
</body>
<%=getBodyAfterJs() %>
</html>
